<?php
namespace Home\Controller;

use Think\Controller;
use Think\Page;
/**
* ==============================================
*  http://www.liuhuanhui.cn
* ==============================================
* @date: 2014-10-14
* @author:liuhuanhui
* @encoding: UTF-8
*/
class SayController extends Controller
{
	/**
	 * 分页显示说说
	 */
    public function index()
    {
    	//分页获取数据
			$say=M('says');
			$page=new Page($say->count(),8);
			$this->show=$page->show();
			$this->says=$say->order('date desc')->limit($page->firstRow,$page->listRows)->select();
			$this->display();
    }

}